package com.woniu.p2p.serviceImpl;

import com.woniu.p2p.mapper.LoansVoMapper;
import com.woniu.p2p.service.LoansService;
import com.woniu.p2p.vo.LoansVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class LoansServiceImpl implements LoansService {

    @Autowired
    private LoansVoMapper loansVoMapper;
    @Override
    public List<LoansVo> searchAll(Map map) {
        return loansVoMapper.searchAll(map);
    }

    @Override
    public LoansVo searchById(Integer id) {
        return loansVoMapper.searchById(id);
    }
}
